package com.weasel.weixin.mp;

import com.weasel.weixin.mp.jetty.JettyServletLauncher;
import com.weasel.weixin.mp.servlet.UserInfoServlet;

import java.io.IOException;
import java.util.concurrent.ExecutionException;

/**获取用户信息测试(运行后，请打开浏览器方法/userinfo)
 * Created by Dylan on 2015/9/28.
 */
public class UserInfoDemo {

    public  static void main(String [] agrs) throws IOException, ExecutionException {


        JettyServletLauncher.listen(8080)
                            .addServletWithMapping(new UserInfoServlet(), "/userinfo")
                            .launch();
    }
}
